


var RIN={REVISION:1}

// browserify support
if ( typeof module === 'object' ) {

	module.exports = RIN;

}

RIN.CanvasRenderer = function () {
	
	this.domElement = document.createElement( 'canvas' );
	this.clear = function () {};
	this.render = function () {};
	this.setClearColor = function () {};
	this.setSize = function () {};

};

RIN.addControl = function(){
	window.addEventListener("keydown", function (e) {
			 var keyID = e.keyCode ? e.keyCode :e.which;  
		    if(keyID === 38 || keyID === 87)  { // up arrow and W   
		       this.position.y -= 0.05;  
		    }  
		    if(keyID === 39 || keyID === 68)  { // right arrow and D  
		        this.position.x += 0.05;  
		    }  
		    if(keyID === 40 || keyID === 83)  { // down arrow and S  
		       this.position.y += 0.05;  
		    }  
		    if(keyID === 37 || keyID === 65)  { // left arrow and A  
		       this.position.x -= 0.05;  
		    }  
		}, true);
}

RIN.Rigidbody = function () {
	
	this.m = function(){};
	this.g = function(){};
	this.gDirection = function(){};
}
